import request from "../utils/request";

export default {
    getCoursePageList(page,limit,searchObj) {
        return request({
            url: `serviceedu/coursefront/getFrontInfo/${page}/${limit}`,
            method: 'post',
            data: searchObj
        })
    },
    // 获取课程二级分类
    getNestedTreeList2() {
        return request({
            url: `serviceedu/subject/getAllSubject`,
            method: 'get'
        })
    },
    getById(courseId) {
        return request({
            url: `serviceedu/coursefront/getFrontCourseInfo/${courseId}`,
            method: 'get'
        })
    }
}